p $tmp=0
while $tmp<$cpu_number
  eval "tvariable $per_cpu_c_%d",$tmp
  eval "tvariable $per_cpu_cy_%d",$tmp
  eval "tvariable $per_cpu_tmp_0_%d",$tmp
  eval "tvariable $per_cpu_need_%d",$tmp
  p $tmp=$tmp+1
end

list e1000_clean_rx_irq
trace 895
  commands
    teval $per_cpu_need_0=1
  end

trace netif_receive_skb  if ($per_cpu_need_0)
  commands
    teval $per_cpu_c_0=$per_cpu_c_0+1
    teval $per_cpu_tmp_0_0=$clock
  end

list netif_receive_skb
trace 2008 if ($per_cpu_c_0>100 && $per_cpu_need_0)
  commands
    teval $per_cpu_cy_0=$clock-$per_cpu_tmp_0_0+$per_cpu_cy_0
    teval $per_cpu_need_0=0
  end

define showall
p $per_cpu_cy_0/($per_cpu_c_0-100)
end
